@import "for";
@import "foreach";
//@import "extend";

// Sizing shortcuts
// -------------------------
.size(@height, @width) {
	width: @width;
	height: @height;
}
.square(@size) {
	.size(@size, @size);
}

.inline-block() {
	display: inline-block;
	*display: inline;
	*zoom: 1;
}

.tab-focus() {
  // Default
  outline: thin dotted #333;
  // Webkit
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

// Placeholder text
// -------------------------
.placeholder(@color: @placeholderText) {
	&:-moz-placeholder,
	&:-ms-input-placeholder,
	&::-webkit-input-placeholder {
		color: @color;
	}
}


// CSS image replacement
// -------------------------
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
.hide-text() {
	font: 0/0 a;
	color: transparent;
	text-shadow: none;
	background-color: transparent;
	border: 0;
}

// Clearfix
// --------
// For clearing floats like a boss h5bp.com/q
.clearfixFn() {
	*zoom: 1;
	&:before,
	&:after {
		display: table;
		content: "";
		// Fixes Opera/contenteditable bug:
		// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
		line-height: 0;
	}
	&:after {
		clear: both;
	}
}

.init() {
	.clearfix {
		.clearfixFn();
	}
}